body{
    margin: 0;
    padding: 0;
    background-image: url("/img/background2.jpg");
    background-attachment: fixed; 
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;/*居中放置*/
    overflow-x: hidden;
}
.mydiv{
    margin-top: -50px;
    height: 70vh;
    width: 100%;
}
.divimage{
    margin-top:20px;
    left: 350px;
    position: relative;
    width: 800px;
    height: 500px;
}
.image{
    position: absolute;  
    width: 100%;  
    height: 100%;  
    object-fit: cover; /* 确保图片保持其比例并覆盖整个容器 */   
    opacity: 0;
    transition: opacity 1s ease-in-out; /* 过渡效果，使图片切换更平滑 */  
}
.active{
    opacity: 1;
}
.divimage:hover{
    cursor: pointer;/*设置光标图标*/
    transform: scale(1.05);/*大小变为1.05倍*/
}
.div1{
    width: 33vw;
    height: 80px;
    font-size: 50px;
    font-weight: bolder;
    color: rgba(232, 225, 27, 0.9);
    text-align: center;
}
a .div1:hover{
    font-size: 60px;
}
a{
    text-decoration: none;/*a标签去下划线*/
}
.text2{
    margin-top: 40px;
    height: 70px;
    /*background-color: rgba(238, 153, 73, 0.9);*/
    font-size: 50px;
    font-weight: bolder;
    color: rgb(250, 126, 32);
}
.text3{
    height: 70vh;
    width: 100%;
}
.main{
    scroll-snap-type: y mandatory;/*y轴滚动捕捉*/
    /*overflow: scroll;/*显示滚动条*/
    overflow-x: hidden;/*水平超出隐藏*/
    height: 100vh;/*高度100%*/
}
.sec{
    height: 100vh;
    width: 100vw;
    scroll-snap-align: start;/*滚动时与窗口对齐*/
}
.sec1{
    background-color:white;
    opacity: 0.8;
}
h2 a:hover{
    font-size: 30px;
    color: blueviolet;
}